from django.urls import path, include

from apps.cms import views

app_name = 'cms'
urlpatterns = [
    # path('signin/', views.signin_view, name='signin'),  # 测试
    path('', views.index_view, name='index'),

    path('upload/', views.upload_view, name='upload'),
    path('token/', views.token_view, name='token'),

    path('news_write/', views.NewsWriteView.as_view(), name='news_write'),
    path('news_edit/<int:news_id>/', views.NewsEditView.as_view(), name='news_edit'),
    path('news_del/', views.news_del, name='news_del'),
    path('news_list/', views.NewsListView.as_view(), name='news_list'),

    path('news_category/', views.news_category_view, name='news_category'),
    path('news_category_add/', views.news_category_add, name='news_category_add'),
    path('news_category_edit/', views.news_category_edit, name='news_category_edit'),
    path('news_category_del/', views.news_category_del, name='news_category_del'),

    path('news_focus/', views.news_focus, name='news_focus'),
    path('news_focus_del/', views.news_focus_del, name='news_focus_del'),
    path('news_focus_add/', views.news_focus_add, name='news_focus_add'),
    path('news_focus_edit/', views.news_focus_edit, name='news_focus_edit'),



    path('course_write/', views.CourseWrite.as_view(), name='course_write'),

]
